using System;
using System.Collections;
using System.Collections.Generic;

using DATA.Base;

namespace DATA.BusinessObjects
{
    public partial class Chitiethoadon : BusinessBase<string>
    {
        #region Declarations

		private int? _soNgayThue = null;
		private float? _thanhTien = null;
		
		private Hoadon _hoadon = null;
		private Phieuthuephong _phieuthuephong = null;
		
		
		#endregion

        #region Constructors

        public Chitiethoadon() { }

        #endregion

        #region Methods

        public override int GetHashCode()
        {
            System.Text.StringBuilder sb = new System.Text.StringBuilder();
            
            sb.Append(this.GetType().FullName);
			sb.Append(_soNgayThue);
			sb.Append(_thanhTien);

            return sb.ToString().GetHashCode();
        }

        #endregion

        #region Properties

		public virtual int? SoNgayThue
        {
            get { return _soNgayThue; }
			set
			{
				OnSoNgayThueChanging();
				_soNgayThue = value;
				OnSoNgayThueChanged();
			}
        }
		partial void OnSoNgayThueChanging();
		partial void OnSoNgayThueChanged();
		
		public virtual float? ThanhTien
        {
            get { return _thanhTien; }
			set
			{
				OnThanhTienChanging();
				_thanhTien = value;
				OnThanhTienChanged();
			}
        }
		partial void OnThanhTienChanging();
		partial void OnThanhTienChanged();
		
		public virtual Hoadon Hoadon
        {
            get { return _hoadon; }
			set
			{
				OnHoadonChanging();
				_hoadon = value;
				OnHoadonChanged();
			}
        }
		partial void OnHoadonChanging();
		partial void OnHoadonChanged();
		
		public virtual Phieuthuephong Phieuthuephong
        {
            get { return _phieuthuephong; }
			set
			{
				OnPhieuthuephongChanging();
				_phieuthuephong = value;
				OnPhieuthuephongChanged();
			}
        }
		partial void OnPhieuthuephongChanging();
		partial void OnPhieuthuephongChanged();
		
        #endregion
    }
}
